package com.example.crawlerjava.service.crawler;

import com.example.crawlerjava.entity.BaseEntity;

import java.util.List;

/**
 * 爬虫策略接口
 */
public interface CrawlerStrategy<T extends BaseEntity> {
    /**
     * 搜索,获取列表数据
     *
     * @param searchKey
     * @return
     */
    List<T> search(String searchKey);


    T getDetail(String detailUrl);

    String getDownloadUrl(String downloadUrl);
}
